#include<iostream>
using namespace std;
int main()
{
	void practice_2_16();
	void practice_2_17();
	int nval=2048;
	int ival=1024;
	int &refval=ival;
	refval=nval;
	//cout<<refval<<" "<<ival<<endl;
	//practice_2_16();
	practice_2_17();
	return 0;
}
void practice_2_16()
{
	int i=0,&r1=i;
	double d=0,&r2=d;
	r2=3.14159;
	cout<<r2<<endl;
	r2=r1;
	cout<<r2<<endl;
	i=r2;
	cout<<i<<endl;
	r1=d;
	cout<<r1<<endl;
}
void practice_2_17()
{
	int i,&ri=i;
	i=5;ri=10;
	cout<<i<<" "<<ri<<endl;
}